package cn.tkxqc.smallprogram.service.impl;

import cn.tkxqc.smallprogram.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class IAddressServiceImpl implements IAddressService {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public List<Map<String, Object>> queryForList() {
        List<Map<String, Object>> maps = jdbcTemplate.queryForList("select *from address");
        return maps;
    }
}
